package com.qmerak.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.qmerak.dao.impl.OrgActivityDao;
import com.qmerak.entity.OrgActivityEntity;
import com.qmerak.entity.OrgEntity;
import com.qmerak.service.IOrgActivityService;

/**
 * @author Shaohong•Cheng
 * @mail shaohong726@126.com
 * @date 2013-4-21
 * @project TUManager
 */
@Repository
public class OrgActivityServiceImpl implements IOrgActivityService {
	@Autowired
	private OrgActivityDao orgActivityDao;

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.service.IOrgActivityService#add(com.entity.OrgActivityEntity)
	 */
	@Override
	public OrgActivityEntity add(OrgActivityEntity entity) {
		return orgActivityDao.add(entity);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.service.IOrgActivityService#update(com.entity.OrgActivityEntity)
	 */
	@Override
	public void update(OrgActivityEntity entity) {
		orgActivityDao.update(entity);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.service.IOrgActivityService#delete(com.entity.OrgActivityEntity)
	 */
	@Override
	public void delete(OrgActivityEntity entity) {
		orgActivityDao.remove(entity);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * com.service.IOrgActivityService#activitiesOfOrg(com.entity.OrgEntity)
	 */
	@Override
	public List<OrgActivityEntity> activitiesOfOrg(OrgEntity entity) {
		return orgActivityDao.activitiesOfOrg(entity);
	}

}
